import { request } from '@/utils'

interface LicensePlateData {
  id?: number
  licensePlate: string
  remark?: string
}

interface QueryParams {
  page?: number
  size?: number
  licensePlate?: string
}

export const inspectionLicense = {
  create(data: LicensePlateData) {
    return request({
      url: '/inspection-license-plate-whitelist/v1/create',
      method: 'post',
      data
    })
  },
  read(params: QueryParams) {
    return request({
      url: '/inspection-license-plate-whitelist/v1/list',
      method: 'get',
      params
    })
  },
  delete(id: number) {
    return request({
      url: '/inspection-license-plate-whitelist/v1/delete/' + id,
      method: 'get'
    })
  }
}
